package cn.yunhe.services.impl;


import cn.yunhe.dao.CollStuDao;
import cn.yunhe.entity.Coll;
import cn.yunhe.services.CollStuServices;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2018/5/28.
 */
@Service
public class CollStuServicesImpl implements CollStuServices {
    @Resource(name = "collDao")
    public CollStuDao collDao;

    public CollStuDao getCollDao() {
        return collDao;
    }

    public void setCollDao(CollStuDao collDao) {
        this.collDao = collDao;
    }

    @Override
    public boolean updateColl(Coll coll) {
        return collDao.updateColl(coll);
    }

    @Override
   public int deleteById(int id) {return collDao.deleteById(id);
    }

   @Override
    public Coll queryById(int id) {
        return collDao.queryById(id);
   }

    @Override
    public List<Coll> queryAllColl(int id) {
        return collDao.queryAllColl(id);
    }


}
